![]() |
Welcome to Javascript Tips and Tricks |
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
![]() ![]() ![]() ![]() ![]() ![]() ![]()
[Identifing Javascripts] [Commenting Out Words] [Hiding the Script]
You should always place the "language='javascript'" command in the <script> tag so that the browser will understand that it is Javascript. This is because there are other types of scripts. <script language="javascript"> </script>
You should comment out text inside a javascript to tell you what is does and that is was created by you. There are 2 ways: <script language="javascript">
/* // This comments out everything on the same line </script>
![]() There are still some browsers that do not understand Javascript. Also some people disable it. So when they load the page, they see gibberish written all over the screen. To avoid this, do as below. <script language="javascript"> <!--
/* //--> </script>
![]()
|